package com.sqbr.video.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author author
 * @since 2024-11-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_user")
@ApiModel(value="User对象", description="")
public class User implements Serializable {


    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户id")
    private Long userId;

    @ApiModelProperty(value = "用户昵称")
    @TableField("user_name")
    private String userName;

    @ApiModelProperty(value = "用户密码")
    @TableField("user_pwd")
    private String userPwd;

    @ApiModelProperty(value = "用户邮箱")
    @TableField("user_email")
    private String userEmail;

    @ApiModelProperty(value = "用户手机号")
    @TableField("user_phone")
    private String userPhone;

    @ApiModelProperty(value = "盐 用于密码加密")
    @TableField("user_salt")
    private String userSalt;

    @ApiModelProperty(value = "0保密1男2女")
    @TableField("user_sex")
    private Integer userSex;

    @ApiModelProperty(value = "用户年龄")
    @TableField("user_age")
    private Integer userAge;

    @ApiModelProperty(value = "用户头像")
    @TableField("user_head")
    private String userHead;

    @ApiModelProperty(value = "用户简介")
    @TableField("user_profile")
    private String userProfile;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "是否正常（0正常 1冻结）")
    @TableField("user_status")
    private Integer userStatus;

    @ApiModelProperty(value = "是否删除（0正常 1删除）")
    @TableField("del_flag")
    private Integer delFlag;


}
